#include <stdio.h>
#include <unistd.h>

int
main ()
{
  // TODO
  char hostname[1024];
  gethostname (hostname, sizeof (hostname));
  /// 其他方法：
  /// sys/utsname.h -> uname
  /// fopen -> /etc/hostname
  /// fopen -> /proc/sys/kernel/hostname
  printf ("%s\n", hostname);
}
